<template>
	<view class="height-box">
		<view class="header flex-center">
			<image src="/static/login1.png" mode='widthFix' class="login1" @click="showSlide = true"></image>
			<image src="/static/title.png" mode="widthFix" class="title"></image>
			<!-- <view class="right flex-center">
				中文
				<image src="/static/arrow-down.png" mode="widthFix"></image>
			</view> -->
			<picker  class="right flex-center" @change="bindPickerChange" :value="index" :range="array">
				<view class="uni-input">
				{{array[index]}}
				<image src="/static/arrow-down.png" mode="widthFix"></image>
				</view>
			</picker>
		</view>
		<view class="filter" v-if="showSlide" @click="showSlide=false">
			<view class="slide-box" @click.stop>
				<view class="top">
					<image src="/static/tab2-a.png" mode="widthFix" class="logo"></image>
					<view class="flex">
						<text>此处是用户ID</text>
						<image src="/static/slide-edit.png"></image>
					</view>
				</view>
				<view class="list first-child flex-between">
					<view>官方网站</view>
					<image src='/static/slide-arrow.png' mode="widthFix"></image>
				</view>
				<view class="list flex-between">
					<view>玩法介绍</view>
					<image src='/static/slide-arrow.png' mode="widthFix"></image>
				</view>
				<view class="list flex-between">
					<view>官方社群</view>
					<image src='/static/slide-arrow.png' mode="widthFix"></image>
				</view>
				<view class="bottom">
					<view>官方网址</view>
					<view>www.vrl.com.cn</view>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				showSlide: false,
				array:['中文','英语'],
				index:0
			};
		},
		methods:{
			bindPickerChange(e){
				console.log(e)
				this.index = e.detail.value
			}
		}
	}
</script>

<style lang="less" scoped>
	.height-box {
		height: 44px;
		position: relative;
		left: -30rpx;
	}

	.header {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 44px;
		background: #202634;
		z-index: 2;

		.login1 {
			position: absolute;
			left: 30rpx;
			width: 36rpx;
			height: 34rpx;
		}

		.title {
			width: 149rpx;
			height: auto
		}

		.right {
			position: absolute;
			right: 30rpx;
			font-size: 28rpx;
			color: #898ea3;

			image {
				width: 24rpx;
				height: 18rpx;
				margin-left: 15rpx;
			}
		}
	}

	.filter {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, .6);
		z-index: 5;

		.slide-box {
			height: 100vh;
			width: 50%;
			background: #202634;
			padding: 30rpx;
			box-sizing: border-box;

			.top {
				text-align: center;
				margin: 120rpx 0 80rpx;

				.logo {
					width: 100rpx;
					height: 93rpx;
				}

				view {
					display: inline-block;
					font-size: 36rpx;
					color: #898ea3;

					image {
						width: 28rpx;
						height: 28rpx;
						margin-left: 10rpx;
					}
				}
			}

			.list {
				height: 100rpx;
				font-size: 32rpx;
				color: #ffffff;
				border-bottom: 2rpx solid #898ea3;

				&.first-child {
					border-top: 2rpx solid #898ea3;
				}

				image {
					width: 13rpx;
					height: 20rpx;
				}
			}

			.bottom {
				position: absolute;
				bottom: 40rpx;
				left: 30rpx;
				font-size: 24rpx;
				color: #898ea3;
			}
		}
	}
</style>
